package com.ruoyi.biz.letter.domain;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.TableField;
import com.ruoyi.biz.letter.read.CityPurposeConverter;
import com.ruoyi.biz.letter.read.LevelCategoryConverter;
import com.ruoyi.biz.letter.read.ReasonableConverter;
import com.ruoyi.biz.letter.read.YesOrNoConverter;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.Date;

/**
 * 省级信访对象 biz_province_letter
 *
 * @author Fei.Cong
 * @date 2024-07-17
 */
@TableName(value = "biz_province_letter")
public class BizProvinceLetter extends CategoryBase {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @ExcelIgnore
    private Long id;

    /**
     * 信件编号
     */
    @ExcelProperty("信访件编号")
    private String letterNumber;

    /**
     * 类别,1-初访,2-三访
     */
    @ExcelProperty("类别")
    private String caseType;

    /**
     * 信件标题
     */
    @ExcelProperty("标题")
    private String letterTitle;

    /**
     * 登记机构
     */
    @ExcelProperty("登记机构")
    private String acceptDept;

    /**
     * 登记时间
     */
    @ExcelProperty("登记时间")
    private Date letterTime;

    /**
     * 信访人姓名
     */
    @ExcelProperty("姓名")
    private String letterUsername;

    /**
     * 信访人手机号
     */
    @ExcelProperty("手机号")
    private String letterPhone;

    /**
     * 台账月份
     */
    private String billMonth;

    /**
     * 是否初访,1-是，0-否
     */
    @ExcelProperty(value = "初访", converter = YesOrNoConverter.class)
    private String isVisit;

    /**
     * 信访目的,1-检举控告,2-建议意见，3-其他，4-申述求决_求决，5-申述求决_申述
     */
    @ExcelProperty(value = "信访目的", converter = CityPurposeConverter.class)
    private String letterPurpose;

    /**
     * 内容分类
     */
    @ExcelProperty("内容分类")
    private String letterCategory;

    /**
     * 问题属地
     */
    @ExcelProperty("问题属地")
    private String ownerArea;

    /**
     * 涉及机构
     */
    @ExcelProperty("涉及机构")
    private String referDept;

    /**
     * 投诉内容
     */
    @ExcelProperty("投诉内容")
    private String letterContent;

    /**
     * 概况信息
     */
    @ExcelProperty("概况信息")
    private String letterInfo;

    /**
     * 登记人
     */
    @ExcelProperty("登记人")
    private String checker;

    /**
     * 信访备注
     */
    private String letterRemark;

    /**
     * 是否涉法涉诉,1-是，0-否
     */
    @ExcelProperty(value = "是否涉法涉诉", converter = YesOrNoConverter.class)
    private String isLaw;

    /**
     * 扬言标志,1-是，0-否
     */
    @ExcelProperty(value = "扬言标志", converter = YesOrNoConverter.class)
    private String isSpeak;

    /**
     * 是否依法逐级上访,1-是，0-否
     */
    @ExcelProperty(value = "是否依法逐级上访", converter = YesOrNoConverter.class)
    private String isSetpLevel;

    /**
     * 证件证号
     */
    @ExcelProperty("证件号码")
    private String letterCardno;

    /**
     * 办理机构名称
     */
    @ExcelProperty("办理机构名称")
    private String handleDept;

    /**
     * 经办人
     */
    @ExcelProperty("经办人")
    private String handleBy;

    /**
     * 办理意见
     */
    @ExcelProperty("办理意见")
    private String handleResult;

    /**
     * 是否有理,1-有理，2-无理，3-部分有理
     */
    @ExcelProperty(value = "是否有理", converter = ReasonableConverter.class)
    private String isReasonable;

    /**
     * 是否化解,1-是，0-否
     */
//    @ExcelProperty(value = "是否化解", converter = YesOrNoConverter.class)
    private String isSolve;

    /**
     * 是否办结,1-是，0-否
     */
//    @ExcelProperty(value = "是否办结", converter = YesOrNoConverter.class)
    private String isFinish;

    /**
     * 部门id
     */
    private Long deptId;

    /**
     * 删除标志（0代表存在 2代表删除）
     */
    private String delFlag;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setLetterNumber(String letterNumber) {
        this.letterNumber = letterNumber;
    }

    public String getLetterNumber() {
        return letterNumber;
    }

    public void setCaseType(String caseType) {
        this.caseType = caseType;
    }

    public String getCaseType() {
        return caseType;
    }

    public void setLetterTitle(String letterTitle) {
        this.letterTitle = letterTitle;
    }

    public String getLetterTitle() {
        return letterTitle;
    }

    public void setAcceptDept(String acceptDept) {
        this.acceptDept = acceptDept;
    }

    public String getAcceptDept() {
        return acceptDept;
    }

    public Date getLetterTime() {
        return letterTime;
    }

    public void setLetterTime(Date letterTime) {
        this.letterTime = letterTime;
    }

    public void setLetterUsername(String letterUsername) {
        this.letterUsername = letterUsername;
    }

    public String getLetterUsername() {
        return letterUsername;
    }

    public void setLetterPhone(String letterPhone) {
        this.letterPhone = letterPhone;
    }

    public String getLetterPhone() {
        return letterPhone;
    }

    public void setBillMonth(String billMonth) {
        this.billMonth = billMonth;
    }

    public String getBillMonth() {
        return billMonth;
    }

    public void setIsVisit(String isVisit) {
        this.isVisit = isVisit;
    }

    public String getIsVisit() {
        return isVisit;
    }

    public void setLetterPurpose(String letterPurpose) {
        this.letterPurpose = letterPurpose;
    }

    public String getLetterPurpose() {
        return letterPurpose;
    }

    public void setLetterCategory(String letterCategory) {
        this.letterCategory = letterCategory;
    }

    public String getLetterCategory() {
        return letterCategory;
    }

    public void setOwnerArea(String ownerArea) {
        this.ownerArea = ownerArea;
    }

    public String getOwnerArea() {
        return ownerArea;
    }

    public void setReferDept(String referDept) {
        this.referDept = referDept;
    }

    public String getReferDept() {
        return referDept;
    }

    public void setLetterContent(String letterContent) {
        this.letterContent = letterContent;
    }

    public String getLetterContent() {
        return letterContent;
    }

    public void setLetterInfo(String letterInfo) {
        this.letterInfo = letterInfo;
    }

    public String getLetterInfo() {
        return letterInfo;
    }

    public void setChecker(String checker) {
        this.checker = checker;
    }

    public String getChecker() {
        return checker;
    }

    public void setLetterRemark(String letterRemark) {
        this.letterRemark = letterRemark;
    }

    public String getLetterRemark() {
        return letterRemark;
    }

    public void setIsLaw(String isLaw) {
        this.isLaw = isLaw;
    }

    public String getIsLaw() {
        return isLaw;
    }

    public void setIsSpeak(String isSpeak) {
        this.isSpeak = isSpeak;
    }

    public String getIsSpeak() {
        return isSpeak;
    }

    public void setIsSetpLevel(String isSetpLevel) {
        this.isSetpLevel = isSetpLevel;
    }

    public String getIsSetpLevel() {
        return isSetpLevel;
    }

    public void setLetterCardno(String letterCardno) {
        this.letterCardno = letterCardno;
    }

    public String getLetterCardno() {
        return letterCardno;
    }

    public void setHandleBy(String handleBy) {
        this.handleBy = handleBy;
    }

    public String getHandleBy() {
        return handleBy;
    }

    public void setHandleResult(String handleResult) {
        this.handleResult = handleResult;
    }

    public String getHandleResult() {
        return handleResult;
    }

    public void setIsReasonable(String isReasonable) {
        this.isReasonable = isReasonable;
    }

    public String getIsReasonable() {
        return isReasonable;
    }

    public void setIsSolve(String isSolve) {
        this.isSolve = isSolve;
    }

    public String getIsSolve() {
        return isSolve;
    }

    public void setIsFinish(String isFinish) {
        this.isFinish = isFinish;
    }

    public String getIsFinish() {
        return isFinish;
    }

    public void setDeptId(Long deptId) {
        this.deptId = deptId;
    }

    public Long getDeptId() {
        return deptId;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    public String getDelFlag() {
        return delFlag;
    }

    public String getHandleDept() {
        return handleDept;
    }

    public void setHandleDept(String handleDept) {
        this.handleDept = handleDept;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("letterNumber", getLetterNumber())
                .append("caseType", getCaseType())
                .append("letterTitle", getLetterTitle())
                .append("acceptDept", getAcceptDept())
                .append("letterTime", getLetterTime())
                .append("letterUsername", getLetterUsername())
                .append("letterPhone", getLetterPhone())
                .append("billMonth", getBillMonth())
                .append("isVisit", getIsVisit())
                .append("letterPurpose", getLetterPurpose())
                .append("letterCategory", getLetterCategory())
                .append("ownerArea", getOwnerArea())
                .append("referDept", getReferDept())
                .append("letterContent", getLetterContent())
                .append("letterInfo", getLetterInfo())
                .append("checker", getChecker())
                .append("letterRemark", getLetterRemark())
                .append("isLaw", getIsLaw())
                .append("isSpeak", getIsSpeak())
                .append("isSetpLevel", getIsSetpLevel())
                .append("letterCardno", getLetterCardno())
                .append("handleBy", getHandleBy())
                .append("handleResult", getHandleResult())
                .append("isReasonable", getIsReasonable())
                .append("isSolve", getIsSolve())
                .append("isFinish", getIsFinish())
                .append("deptId", getDeptId())
                .append("delFlag", getDelFlag())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .toString();
    }
}
